-- GENERATED SPELL FOR [War Reaver] --


function spell0_7039(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_7039', 600, 1)
end

function spell1_7039(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7039', 647, 1)
end

function Sorts_7039(pUnit, Event)
local choix_sorts_7039 = math.random(0, 1)
if choix_sorts_7039 == 0 then
pUnit:RegisterEvent('spell0_7039', 1, 1)
end
if choix_sorts_7039 == 1 then
pUnit:RegisterEvent('spell1_7039', 1, 1)
end
end

function mob7039_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7039', math.random(1500, 3000), 1)
end

function mob7039_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7039_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7039_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7039, 1, 'mob7039_Action')
RegisterUnitEvent(7039, 2, 'mob7039_Leave')
RegisterUnitEvent(7039, 3, 'mob7039_Kill')
RegisterUnitEvent(7039, 4, 'mob7039_Die')
